package com.fulu.game.bi.controller.play;

import com.fulu.game.bi.entity.vo.Result;
import com.fulu.game.bi.redis.service.play.GameCategoryService;
import com.fulu.game.bi.redis.service.play.GameNewPlayeeRemainService;
import com.fulu.game.bi.redis.service.play.GamePlaySceneService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 游戏陪玩-条件
 */
@RestController
@RequestMapping("/api/play/condition")
@Slf4j
public class GamePlayConditionController {

    @Autowired
    private GamePlaySceneService gamePlaySceneService;
    @Autowired
    private GameCategoryService gameCategoryService;
    @Autowired
    private GameNewPlayeeRemainService gameNewPlayeeRemainService;

    /**
     * 游戏陪玩-派单厅-派单厅ID
     */
    @RequestMapping("/room-no")
    public Result roomNo() {
        return Result.success().data(gamePlaySceneService.roomNo());
    }


    /**
     * 游戏陪玩-陪玩品类
     */
    @RequestMapping("/category")
    public Result category() {
        return Result.success().data(gameCategoryService.category());
    }


    /**
     * 游戏陪玩-陪玩场景-条件-路径
     */
    @RequestMapping("/path")
    public Result path() {
        return Result.success().data(gamePlaySceneService.path());
    }

    /**
     * 游戏陪玩-陪玩场景-条件-一键下单
     */
    @RequestMapping("/click")
    public Result click() {
        return Result.success().data(gamePlaySceneService.click());
    }

    /**
     * 游戏陪玩-陪玩场景-条件-新客价
     */
    @RequestMapping("/new-price")
    public Result newPrice() {
        return Result.success().data(gamePlaySceneService.newPrice());
    }

    /**
     * 游戏陪玩-陪玩场景-条件-新陪玩师留存
     */
    @RequestMapping("/new-playee")
    public Result newPlayee() {
        return Result.success().data(gameNewPlayeeRemainService.newPlayee());
    }

}
